<?php
try{
	$dsn = 'mysql: host=localhost; dbname=akpymh_hotel';
	$username = 'root';
	$password = '';
	$options = array(
	    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
	); 

	$pdo = new PDO($dsn, $username, $password);
	$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	$GLOBALS['pdo']=$pdo;
}catch(PDOException $e){
	print "Error!: " . $e->getMessage() . "<br/>";
    die();
}
?>